\hypertarget{game_8c}{
\section{game.c File Reference}
\label{game_8c}\index{game.c@{game.c}}
}
{\tt \#include $<$SDL/SDL.h$>$}\par
{\tt \#include \char`\"{}game.h\char`\"{}}\par
{\tt \#include \char`\"{}event.h\char`\"{}}\par
{\tt \#include \char`\"{}error\_\-mens.h\char`\"{}}\par
{\tt \#include \char`\"{}treat.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hyperlink{structGame}{Game} $\ast$ \hyperlink{game_8c_abb10419dbd089ed1f572a817bea10ee}{create\_\-game} ()
\item 
int \hyperlink{game_8c_6c39193e16008d59e4c4d0deb3ef02a9}{destroy\_\-game} (\hyperlink{structGame}{Game} $\ast$g)
\item 
int \hyperlink{game_8c_bafdc0ac9fb498b1c6301230370509ec}{render\_\-game} (\hyperlink{structGame}{Game} $\ast$g)
\item 
int \hyperlink{game_8c_16f4b8728d61c87aa84171b01265df25}{game\_\-main\_\-loop} (\hyperlink{structGame}{Game} $\ast$g)
\item 
int \hyperlink{game_8c_14d9c9c1f3a367be28f59f350ed233f3}{quit\_\-game} (\hyperlink{structGame}{Game} $\ast$g)
\end{CompactItemize}


\subsection{Detailed Description}
Implementacao dos metodos de game 

\subsection{Function Documentation}
\hypertarget{game_8c_abb10419dbd089ed1f572a817bea10ee}{
\index{game.c@{game.c}!create\_\-game@{create\_\-game}}
\index{create\_\-game@{create\_\-game}!game.c@{game.c}}
\subsubsection[{create\_\-game}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Game}$\ast$ create\_\-game (void)}}
\label{game_8c_abb10419dbd089ed1f572a817bea10ee}


Cria game \hypertarget{game_8c_6c39193e16008d59e4c4d0deb3ef02a9}{
\index{game.c@{game.c}!destroy\_\-game@{destroy\_\-game}}
\index{destroy\_\-game@{destroy\_\-game}!game.c@{game.c}}
\subsubsection[{destroy\_\-game}]{\setlength{\rightskip}{0pt plus 5cm}int destroy\_\-game ({\bf Game} $\ast$ {\em g})}}
\label{game_8c_6c39193e16008d59e4c4d0deb3ef02a9}


Destroy \hyperlink{structGame}{Game} $\ast$game \hypertarget{game_8c_16f4b8728d61c87aa84171b01265df25}{
\index{game.c@{game.c}!game\_\-main\_\-loop@{game\_\-main\_\-loop}}
\index{game\_\-main\_\-loop@{game\_\-main\_\-loop}!game.c@{game.c}}
\subsubsection[{game\_\-main\_\-loop}]{\setlength{\rightskip}{0pt plus 5cm}int game\_\-main\_\-loop ({\bf Game} $\ast$ {\em g})}}
\label{game_8c_16f4b8728d61c87aa84171b01265df25}


Loop principal \hypertarget{game_8c_14d9c9c1f3a367be28f59f350ed233f3}{
\index{game.c@{game.c}!quit\_\-game@{quit\_\-game}}
\index{quit\_\-game@{quit\_\-game}!game.c@{game.c}}
\subsubsection[{quit\_\-game}]{\setlength{\rightskip}{0pt plus 5cm}int quit\_\-game ({\bf Game} $\ast$)}}
\label{game_8c_14d9c9c1f3a367be28f59f350ed233f3}


Para jogo chama destroy\_\-game e sai \hypertarget{game_8c_bafdc0ac9fb498b1c6301230370509ec}{
\index{game.c@{game.c}!render\_\-game@{render\_\-game}}
\index{render\_\-game@{render\_\-game}!game.c@{game.c}}
\subsubsection[{render\_\-game}]{\setlength{\rightskip}{0pt plus 5cm}int render\_\-game ({\bf Game} $\ast$ {\em g})}}
\label{game_8c_bafdc0ac9fb498b1c6301230370509ec}


Renderiza o game 